﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace WC.BL.BE
{
    public class RandomClass
    {
        /// <summary>
        /// Generates a random string with the given length
        /// </summary>
        /// <param name="size">Size of the string</param>
        /// <param name="lowerCase">If true, generate lowercase string</param>
        /// <returns>Random string</returns>
        public static string RandomString(int size)
        {
            string path = Path.GetRandomFileName();
	        path = path.Replace(".", string.Empty);
            while (path.Length < size)
            {
                path += Path.GetRandomFileName().Replace(".", string.Empty);
            }
	        return path.Substring(0, size);
        }
    }
}
